package org.microdream.easy.deploy.po;

import java.io.Serializable;
import javax.persistence.*;

import ice.server.comm.PoExtender;

import java.util.Date;
import java.util.List;


/**
 * The persistent class for the d_server database table.
 * 
 */
@Entity
@Table(name="d_server")
@NamedQuery(name="DServer.findAll", query="SELECT d FROM DServer d")
public class DServer extends PoExtender implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="create_time")
	private Date createTime;

	private String creator;

	@Column(name="creator_name")
	private String creatorName;

	@Column(name="link_port")
	private int linkPort;

	@Column(name="link_type")
	private String linkType;

	@Column(name="org_code")
	private String orgCode;

	@Column(name="rent_code")
	private String rentCode;

	@Column(name="server_code")
	private String serverCode;

	@Column(name="server_ip")
	private String serverIp;

	@Column(name="server_name")
	private String serverName;

	@Column(name="server_type")
	private String serverType;
	
	@Transient
	private List<String> username;
	
	@Transient
	private List<String> userpwd;
	
	public List<String> getUsername() {
		return username;
	}

	public void setUsername(List<String> username) {
		this.username = username;
	}

	public List<String> getUserpwd() {
		return userpwd;
	}

	public void setUserpwd(List<String> userpwd) {
		this.userpwd = userpwd;
	}

	public DServer() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreator() {
		return this.creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getCreatorName() {
		return this.creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public int getLinkPort() {
		return this.linkPort;
	}

	public void setLinkPort(int linkPort) {
		this.linkPort = linkPort;
	}

	public String getLinkType() {
		return this.linkType;
	}

	public void setLinkType(String linkType) {
		this.linkType = linkType;
	}

	public String getOrgCode() {
		return this.orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public String getRentCode() {
		return this.rentCode;
	}

	public void setRentCode(String rentCode) {
		this.rentCode = rentCode;
	}

	public String getServerCode() {
		return this.serverCode;
	}

	public void setServerCode(String serverCode) {
		this.serverCode = serverCode;
	}

	public String getServerIp() {
		return this.serverIp;
	}

	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	public String getServerName() {
		return this.serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getServerType() {
		return this.serverType;
	}

	public void setServerType(String serverType) {
		this.serverType = serverType;
	}

}